package router

import (
	"beta/middleware"
	"beta/router/api"
	"github.com/gin-gonic/gin"
)

func InitRouter() *gin.Engine {
	r := gin.New()

	r.Use(middleware.GinTrace())
	BetaApi := r.Group("/api")
	BetaApi.Use()
	{
		BetaApi.POST("/order", api.AddOrder)
		BetaApi.POST("/job", api.AddLtsJob)
	}
	return r
}